Skip to main content

ModifyBlockSwitchs

Description

change the blocking switch state in DDoS settings.

Request Method

POST

Request Path

/apsara/route/Ddosprivate/ModifyBlockSwitchs

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
regionIdBODYstringYesNo sample value for this parameter.region id
ModeBODYintegerYesNo sample value for this parameter.The state of the blocking switch, including: 0: indicates closed state 1: indicates open state
IdBODYintegerYesNo sample value for this parameter.block switch ID.
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
RequestIdstringno demo valuerequest ID.

Example

Successful Response example

{
"RequestId":"no demo value"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}